<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

	
	<!-- Header -->
	<div class="header-content">
		Xin chào <a href="#" class="btn btn-info"><c:out value="${sessionScope.userName}" /></a>
		
	</div>
	<!-- /Header -->

	<!-- Navigation bar -->
		<div class="row">
			<div class="col-md-12">
				<nav class="navbar navbar-inverse" role="navigation">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-01">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
					</div>
					<div class="collapse navbar-collapse navbar-collapse-01">
						<ul class="nav navbar-nav navbar-left">
							<li class="active"><a href="./">Trang chủ</a></li>
							<li class="dropdown">
								<a href="#fakelink" class="dropdown-toggle" data-toggle="dropdown">
									Chiến dịch
									<span class="caret"></span>
								</a>
								<ul class="dropdown-menu">
									<li><a href="camp-list">Danh sách chiến dịch</a></li>
									<li> <a href="camp-create">Tạo chiến dịch mới</a></li>
								</ul> <!-- /Sub menu -->
							</li>
							
							<li><a href="./survey-list-all">Khảo sát</a></li>
							
							<li class="dropdown">
								<a href="#fakelink" class="dropdown-toggle" data-toggle="dropdown">
									Tài khoản
									<span class="caret"></span>
								</a>
								<ul class="dropdown-menu">
									<c:choose>
										<c:when test="${sessionScope.userId != null}">
										  	<li><a href="./logout">Đăng xuất</a></li>
										</c:when>
										<c:otherwise>
											<li><a href="./login">Đăng nhập</a></li>
										</c:otherwise>
									</c:choose>
									<li> <a href="./sigup">Đăng kí</a></li>
								</ul> <!-- /Sub menu -->
							</li>
							
							<li><a href="./about">Thông tin</a></li>
						</ul>
					</div><!--/.nav -->
				</nav>
			</div>
		</div>
		<!-- /Navigation -->
